package service

import (
	"context"
	"fmt"
	"grpc_demo/domain"
)

type SayHelloServer struct {

}

func (s *SayHelloServer) Call(ctx context.Context, req *domain.Req) (*domain.Resp, error) {
	fmt.Println("say hello world" )
	fmt.Println(req.Msg)
	return &domain.Resp{
		Code: 0,
		Msg: "req:"+req.Msg,
	},nil
}